package com.jackiechancinema.ssm.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jackiechancinema.ssm.entity.Salary;
import com.jackiechancinema.ssm.entity.Work;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class SalaryDto {
    private Integer id;
    private String ename;
    private Integer empno;
    private Integer month;
    private double basicsalary;
    private double reward;
    private double taxes;
    private double insurance;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-hh")
    private Date ctime;
    private Work work;
}
